home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / k3bdvdformattingjob.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-05-27  |  2.0 KB  |  92 lines

  1. /* 
  2.  *
  3.  * $Id: k3bdvdformattingjob.h 619556 2007-01-03 17:38:12Z trueg $
  4.  * Copyright (C) 2003 Sebastian Trueg <trueg@k3b.org>
  5.  *
  6.  * This file is part of the K3b project.
  7.  * Copyright (C) 1998-2007 Sebastian Trueg <trueg@k3b.org>
  8.  *
  9.  * This program is free software; you can redistribute it and/or modify
  10.  * it under the terms of the GNU General Public License as published by
  11.  * the Free Software Foundation; either version 2 of the License, or
  12.  * (at your option) any later version.
  13.  * See the file "COPYING" for the exact licensing terms.
  14.  */
  15.  
  16. #ifndef _K3B_DVD_FORMATTING_JOB_H_
  17. #define _K3B_DVD_FORMATTING_JOB_H_
  18.  
  19.  
  20. #include <k3bjob.h>
  21. #include "k3b_export.h"
  22.  
  23. class KProcess;
  24. namespace K3bDevice {
  25.   class Device;
  26.   class DeviceHandler;
  27. }
  28.  
  29.  
  30. class LIBK3B_EXPORT K3bDvdFormattingJob : public K3bBurnJob
  31. {
  32.   Q_OBJECT
  33.  
  34.  public:
  35.   K3bDvdFormattingJob( K3bJobHandler*, QObject* parent = 0, const char* name = 0 );
  36.   ~K3bDvdFormattingJob();
  37.  
  38.   QString jobDescription() const;
  39.   QString jobDetails() const;
  40.  
  41.   K3bDevice::Device* writer() const;
  42.  
  43.  public slots:
  44.   void start();
  45.  
  46.  /**
  47.   * Use this to force the start of the formatting without checking for a usable medium.
  48.   */
  49.   void start( const K3bDevice::DiskInfo& );
  50.  
  51.   void cancel();
  52.  
  53.   void setDevice( K3bDevice::Device* );
  54.  
  55.   /**
  56.    * One of: WRITING_MODE_INCR_SEQ, WRITING_MODE_RES_OVWR
  57.    * Ignored for DVD+RW
  58.    */
  59.   void setMode( int );
  60.  
  61.   /**
  62.    * Not all writers support this
  63.    */
  64.   void setQuickFormat( bool );
  65.  
  66.   /**
  67.    * @param b If true empty DVDs will also be formatted
  68.    */
  69.   void setForce( bool b );
  70.  
  71.   /**
  72.    * If set true the job ignores the global K3b setting
  73.    * and does not eject the CD-RW after finishing
  74.    */
  75.   void setForceNoEject( bool );
  76.  
  77.  private slots:
  78.   void slotStderrLine( const QString& );
  79.   void slotProcessFinished( KProcess* );
  80.   void slotDeviceHandlerFinished( K3bDevice::DeviceHandler* );
  81.   void slotEjectingFinished( K3bDevice::DeviceHandler* );
  82.  
  83.  private:
  84.   void startFormatting( const K3bDevice::DiskInfo& );
  85.  
  86.   class Private;
  87.   Private* d;
  88. };
  89.  
  90.  
  91. #endif
  92.